
import { defineStore } from 'pinia'
import type { ReportDataModel } from '@/api/mock/model/data'
import { reqGetReportData } from '@/api/mock'

export const useReportDataStore = defineStore({
  id:'reportData',
  state(){
    return{
      reportData: {} as ReportDataModel
    }
  },
  actions:{
    async getReportData(){
      const res = await reqGetReportData()
      this.reportData = res
    }
  }
})